﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Master
{
    public class Parties
    {
        #region Properties
        // PARTIES_ID
        public virtual int PartiesId { set; get; }
        // PARTIES_REF_CODE
        public virtual String PartiesRefCode { set; get; }
        // PARTIES_LIFE_TYPE
        public virtual int? PartiesLifeType { set; get; }
        // CREATE_USER_ID
        public virtual String CreateUserId { set; get; }
        // CREATE_TS
        public virtual DateTime CreateTs { set; get; }

        #endregion



        public override bool Equals(object obj)
        {
            if (obj == null)
                return false;
            if (obj.GetType() != typeof(Parties) && !(obj is Parties))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}", PartiesId);
        }
    }
}
